package javagame;

import java.util.ArrayList;

import javagame.Play.difficulty;
import javagame.Play.game_mode;

import org.newdawn.slick.SlickException;

public class Nivo {
	
	private static int nivo;
	private static ArrayList<Level> level = new ArrayList<Level>();
	private static difficulty tezina;
	private static game_mode mod;
	private static boolean presaoIgru;
	private static boolean dvaIgraca;
	private static boolean verticalLevel;
	
	public static void setNivo (int n) {
		nivo = n;
	}
	
	public static int getNivo () {
		return nivo;
	}
	
	public static void setTezina(difficulty tezina) {
		Nivo.tezina = tezina;
	}

	public static difficulty getTezina() {
		return tezina;
	}

	public static void setMod(game_mode mod) {
		Nivo.mod = mod;
	}

	public static game_mode getMod() {
		return mod;
	}

	public static boolean isPresaoIgru() {
		return presaoIgru;
	}

	public static void setPresaoIgru(boolean presaoIgru) {
		Nivo.presaoIgru = presaoIgru;
	}

	public static void setDvaIgraca(boolean dvaIgraca) {
		Nivo.dvaIgraca = dvaIgraca;
	}

	public static boolean isDvaIgraca() {
		return dvaIgraca;
	}

	public static void setVerticalLevel(boolean verticalLevel) {
		Nivo.verticalLevel = verticalLevel;
	}

	public static boolean isVerticalLevel() {
		return verticalLevel;
	}

	public static void addLevel (Level l) {
		level.add(l);
	}
	
	public static void resetLevel () throws SlickException {
		for (Level l:level) {
			l.oziviSve();
			verticalLevel = false;
			//l.initPowerUp();
		}
	}
	
}
